package com.ljq.fndmtl_syn_el;

/**
 * Description:运算符
 * Author:ljq
 * Date:2025-02-14
 * Time:0:45
 */
public class Operators {
    public static void main(String[] args) {
//        算数
        int num1 = 1234;
        int ge = num1 % 10;
        int shi = num1 / 10 % 10;
        int bai = num1 / 100 % 10;
        int qian = num1 / 1000;
        System.out.println(qian);
//        赋值


//        关系
//        逻辑

        int a = 123;
        int b = 556;
        int c = 156;
        int h = 10;
        System.out.println(h);
//        三元运算符
//        int max = (a > b ? a : b) > c ?  (a > b ? a : b) :c ;

    }
}
